namespace SimpleWebServices.Data
{
    using System;
    using System.Net;
    using System.Web;
    using SimpleWebServices.Web;
    using Xunit;

    public sealed class IRecordFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IRecord).IsInterface);
        }

        [Fact]
        public void IRecord_Cacheability_get()
        {
            try
            {
                HttpCacheability? value = (new IRecordDummy() as IRecord).Cacheability;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Cacheability_set()
        {
            try
            {
                (new IRecordDummy() as IRecord).Cacheability = HttpCacheability.NoCache;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Created_get()
        {
            try
            {
                DateTime? value = (new IRecordDummy() as IRecord).Created;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Created_set()
        {
            try
            {
                (new IRecordDummy() as IRecord).Created = DateTime.UtcNow;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Entity_get()
        {
            try
            {
                string value = (new IRecordDummy() as IRecord).Entity;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Etag_get()
        {
            try
            {
                string value = (new IRecordDummy() as IRecord).Etag;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Etag_set()
        {
            try
            {
                (new IRecordDummy() as IRecord).Etag = null as string;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Expires_get()
        {
            try
            {
                Expiration value = (new IRecordDummy() as IRecord).Expires;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Expires_set()
        {
            try
            {
                (new IRecordDummy() as IRecord).Expires = null as Expiration;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Modified_get()
        {
            try
            {
                DateTime? value = (new IRecordDummy() as IRecord).Modified;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Modified_set()
        {
            try
            {
                (new IRecordDummy() as IRecord).Modified = DateTime.UtcNow;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Status_get()
        {
            try
            {
                HttpStatusCode? value = (new IRecordDummy() as IRecord).Status;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Status_set()
        {
            try
            {
                (new IRecordDummy() as IRecord).Status = HttpStatusCode.Accepted;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Token_get()
        {
            try
            {
                Token? value = (new IRecordDummy() as IRecord).Token;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Token_set()
        {
            try
            {
                (new IRecordDummy() as IRecord).Token = Token.New();
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Urn_get()
        {
            try
            {
                AbsoluteUri value = (new IRecordDummy() as IRecord).Urn;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IRecord_Urn_set()
        {
            try
            {
                (new IRecordDummy() as IRecord).Urn = null as AbsoluteUri;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}